﻿using Anderson.NetLobby.Common;
using System;

namespace Anderson.NetLobby.MessageContent
{
    [Serializable]
    public class RoomInfo
    {
        public long roomId;
        public long roomOwner;
        public int playerCount;
        public bool roomStarted;
        public JsonList<string> playerCodes;
        public JsonList<long> playerIds;
        public JsonList<long> playerStartIds;

        public RoomInfo() : this(0, 0, 0, false)
        {

        }

        public RoomInfo(long id, long owner, int count, bool started)
        {
            playerCodes = new JsonList<string>();
            playerIds = new JsonList<long>();
            playerStartIds = new JsonList<long>();

            roomStarted = false;

            roomStarted = started;
            roomId = id;
            roomOwner = owner;
            playerCount = count;
        }
    }
}
